package com.nuoniu.sibanyun.controller.crm;


import com.nuoniu.sibanyun.common.BaseController;
import com.nuoniu.sibanyun.common.result.HttpResult;
import com.nuoniu.sibanyun.service.crm.ICrmGoodsCallSettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  套餐商品 前端控制器
 * </p>
 *
 * @author 白强
 * @since 2022-05-25
 */
@RestController
@RequestMapping("/crm/goodsCallSetting")
public class CrmGoodsCallSettingController extends BaseController {

    @Autowired

    private ICrmGoodsCallSettingService crmGoodsCallSettingService;

    /**
     * 获取话费商品详情
     * @author 白强
     * @date 2022-05-27
     */
    @GetMapping("getByGoodsId")
    public HttpResult getByGoodsId(Long goodsId) {
        return HttpResult.ok(crmGoodsCallSettingService.getByGoodsId(goodsId));
    }

}
